package com.project.easy.common.util.dto;

import java.io.Serializable;

/**
 * @author GreatorMan.cool
 * @copyright: Copyright (c) 2020
 * @company: 扬起科技有限公司
 * @date 2021/11/1 21:34
 * @description: 权限集合
 */
public class AuthDto implements Serializable {
    /**
     * 名称
     */
    private String authName;
    /**
     * 权限编码
     */
    private String authCode;
    /**
     * 读权限
     */
    private Boolean read;
    /**
     * 写权限
     */
    private Boolean write;

    /**
     * 根据权限
     * @param authCode 权限编码
     * @param authName  权限名称
     */
    public AuthDto(String authCode, String authName) {
        this.authCode = authCode;
        this.authName = authName;
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    public Boolean getRead() {
        return read;
    }

    public void setRead(Boolean read) {
        this.read = read;
    }

    public Boolean getWrite() {
        return write;
    }

    public void setWrite(Boolean write) {
        this.write = write;
    }

    public String getAuthName() {
        return authName;
    }

    public void setAuthName(String authName) {
        this.authName = authName;
    }
}
